package com.zhichat.web.vo;

import com.zhichat.entity.AppVersionEntity;
import lombok.EqualsAndHashCode;
import org.springframework.util.StringUtils;

/**
 * @ClassName: AppUpdateEntityVO
 * @Description: App版本信息VO
 * @Author: 团长九哥 https://space.bilibili.com/602197686
 * @CreateDate: 2024/11/25 21:11
 */
@EqualsAndHashCode(callSuper = true)
public class AppVersionEntityVO extends AppVersionEntity {

    private String[] appVersionDescArr;

    public String[] getAppVersionDescArr() {
        if (StringUtils.hasText(getVersionDesc())) {
            return getVersionDesc().split("\\|");
        }
        return appVersionDescArr;
    }

    public void setAppVersionDescArr(String[] appVersionDescArr) {
        this.appVersionDescArr = appVersionDescArr;
    }
}
